<?php

namespace Sffi\ElementPlus\entityTrait;

use Sffi\ElementPlus\entity\Option;

trait SelectOption
{
    /**
     * @var Option[] $selectOption
     */
    protected $selectOption = [];

    public function addOption(Option $option)
    {
        $this->selectOption[] = $option;
        return $this;
    }

    public function setSelectOption($options)
    {
        $this->selectOption = $options;
        return $this;
    }
}